<style scoped>
.outer{position: relative}
.head{height: 120px;}
.tabs{height: 30px;position: sticky;top: 0;background-color: #007AFF}
.body{position: sticky;top: 30px;background-color: #999999}
.body{height: 2000px;overflow: hidden;}

</style>
<template>
  <div class="outer">
    <div class="head">
      <h1>头部</h1>
    </div>
    <div class="tabs">
      <p>分栏</p>
    </div>
    <div class="body flex">
      <div class="cat">
        <p v-for="i in 200">分类{{i}}</p>
      </div>
      <div class="list">
        <h1 v-for="i in 200">内容{{i}}</h1>
      </div>
    </div>
    <div class="empty" style="height: 2000px"></div>
  </div>
</template>

<script>
</script>